<!-- INCLUDE gallery/gallery_header.html -->
<script type="text/javascript">
function getElement(iElementId)
{
	if (document.all) 
	{
		return document.all[iElementId];
	}
	if (document.getElementById)
	{
		return document.getElementById(iElementId);
	}
}

function toggleElement(oElement)
{
	if (oElement.style.display == "none")
	{
		oElement.style.display = "";
	}
	else
	{
		oElement.style.display = "none";
	}
}
</script>
<h2><!-- IF U_VIEW_IMAGE --><a href="{U_VIEW_IMAGE}">{IMAGE_NAME}</a><!-- ELSE --><a href="{U_VIEW_ALBUM}">{ALBUM_NAME}</a><!-- ENDIF --></h2>

<!-- IF U_IMAGE -->
<div class="post bg2">
	<div class="inner">
		<span class="corners-top"><span></span></span>
		<div style="text-align: center; padding: 20px;">
			<a href="{U_IMAGE}"<!-- IF S_GP_HIGHSLIDE --> class="highslide" onclick="return hs.expand(this)"<!-- ELSEIF S_GP_LYTEBOX --> rel="lytebox" class="image-resize"<!-- ENDIF -->><img src="{U_IMAGE}" alt="{IMAGE_NAME}" title="{IMAGE_NAME}" style="max-height: {IMAGE_RSZ_HEIGHT}px; max-width: {IMAGE_RSZ_WIDTH}px;" /></a></div>
		<span class="corners-bottom"><span></span></span>
	</div>
</div>
<!-- ENDIF -->

<form id="postform" action="{S_ALBUM_ACTION}" method="post" enctype="multipart/form-data">

<div class="panel" id="postingbox">
	<div class="inner"><span class="corners-top"><span></span></span>
		<h3><!-- IF S_COMMENT -->{L_POST_COMMENT}<!-- ELSEIF S_UPLOAD -->{L_UPLOAD_IMAGE}<!-- ELSEIF S_EDIT -->{L_EDIT_IMAGE}<!-- ELSEIF S_REPORT -->{L_REPORT_IMAGE}<!-- ENDIF --></h3>
	<fieldset class="fields1">
	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->

			<!-- IF not S_USER_LOGGED_IN -->
			<dl>
				<dt><label for="username">{L_USERNAME}:</label></dt>
				<dd id="username"><input class="inputbox autowidth" type="text" tabindex="1" name="username" value="{USERNAME}" size="60" maxlength="32" /></dd>
			</dl>
			<!-- ENDIF -->
			<!-- IF S_IMAGE -->
				<dl>
					<dt><label for="image_name">{L_IMAGE_NAME}:</label></dt>
					<dd id="image_name_fields"><input class="inputbox autowidth" type="text" tabindex="2" id="image_name" name="image_name" value="{IMAGE_NAME}" size="60" />
					<!-- IF S_MULTI_IMAGES --><br /><input class="inputbox autowidth" type="text" name="image_num" size="5" value="1" /> {L_LOOP_EXP}<!-- ENDIF --></dd>
					<!-- IF S_UPLOAD --><dd><input class="checkbox" type="checkbox" name="filename" id="filename" value="filename" onclick="toggleElement(getElement('image_name_fields'));" /><label for="filename"> {L_ORIG_FILENAME}</label></dd><!-- ENDIF -->
				</dl>
			<!-- ENDIF -->
			<!-- IF S_ALLOWED_TO_RATE -->
				<dl>
					<dt><label>{L_YOUR_RATING}:</label></dt>
					<dd>
					<!-- IF .rate_scale -->
						<select name="rate">
						<!-- BEGIN rate_scale -->
							<!-- IF rate_scale.RATE_POINT == 1 --><option value="0">{L_DONT_RATE_IMAGE}</option><!-- ENDIF -->
							<option value="{rate_scale.RATE_POINT}">{rate_scale.RATE_POINT}</option>
						<!-- END rate_scale -->
						</select>
					<!-- ELSE -->
						{CONTEST_RATING}
					<!-- ENDIF -->
					</dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF not S_REPORT -->
			<!-- IF CAPTCHA_TEMPLATE -->
			<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
			<!-- ENDIF -->
			<dl>
				<dt><label for="message"><!-- IF S_COMMENT -->{L_YOUR_COMMENT}<!-- ELSE -->{L_IMAGE_DESC}<!-- ENDIF -->:</label></dt>
			</dl>
			<!-- INCLUDE posting_buttons.html -->
			<div id="smiley-box">
				<!-- IF S_SMILIES_ALLOWED and .smiley -->
					<strong>{L_SMILIES}</strong><br />
					<!-- BEGIN smiley -->
						<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
					<!-- END smiley -->
				<!-- ENDIF -->
				<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
					<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
				<!-- ENDIF -->

				<!-- IF BBCODE_STATUS -->
				<!-- IF .smiley --><hr /><!-- ENDIF -->
				{BBCODE_STATUS}<br />
				<!-- IF S_BBCODE_ALLOWED -->
					{IMG_STATUS}<br />
					{FLASH_STATUS}<br />
					{URL_STATUS}<br />
					{SMILIES_STATUS}<hr />
				<!-- ENDIF -->
				<!-- ENDIF -->
				<!-- IF S_UPLOAD or S_EDIT -->{L_DESCRIPTION_LENGTH}<!-- ELSEIF not S_REPORT -->{L_COMMENT_LENGTH}<!-- ENDIF -->
			</div>
			<!-- ENDIF -->
			<div id="message-box">
				<textarea name="message" id="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox">{MESSAGE}</textarea>
			</div>
			<!-- IF S_EDIT and S_ALLOW_ROTATE -->
				<dl>
					<dt><label for="rotate">{L_ROTATE_IMAGE}:</label></dt>
					<dd><input type="radio" name="rotate" id="rotate_0" value="0" checked="checked" /> <label for="rotate_0">{L_ROTATE_NONE}</label> &nbsp;
						<input type="radio" name="rotate" id="rotate_270" value="270" /> <label for="rotate_270">{L_ROTATE_RIGHT}</label> &nbsp;
						<input type="radio" name="rotate" id="rotate_180" value="180" /> <label for="rotate_180">{L_ROTATE_UPSIDEDOWN}</label> &nbsp;
						<input type="radio" name="rotate" id="rotate_90" value="90" /> <label for="rotate_90">{L_ROTATE_LEFT}</label></dd>
				</dl>
			<!-- ENDIF -->
			<!-- IF S_UPLOAD -->
				<hr />
				<!-- BEGIN upload_image -->
					<dl>
						<dt><label for="image_file_{upload_image.S_ROW_COUNT}">{L_FILE}:</label></dt>
						<dd><input class="inputbox autowidth" type="file" tabindex="1{upload_image.S_ROW_COUNT}" id="image_file_{upload_image.S_ROW_COUNT}" name="image_file_{upload_image.S_ROW_COUNT}" size="52" /></dd>
						<!-- IF S_ALLOW_ROTATE -->
							<dd><input type="radio" name="rotate[{upload_image.S_ROW_COUNT}]" id="rotate[{upload_image.S_ROW_COUNT}]_0" value="0" checked="checked" /> <label for="rotate[{upload_image.S_ROW_COUNT}]_0">{L_ROTATE_NONE}</label> &nbsp;
								<input type="radio" name="rotate[{upload_image.S_ROW_COUNT}]" id="rotate[{upload_image.S_ROW_COUNT}]_270" value="270" /> <label for="rotate[{upload_image.S_ROW_COUNT}]_270">{L_ROTATE_RIGHT}</label> &nbsp;
								<input type="radio" name="rotate[{upload_image.S_ROW_COUNT}]" id="rotate[{upload_image.S_ROW_COUNT}]_180" value="180" /> <label for="rotate[{upload_image.S_ROW_COUNT}]_180">{L_ROTATE_UPSIDEDOWN}</label> &nbsp;
								<input type="radio" name="rotate[{upload_image.S_ROW_COUNT}]" id="rotate[{upload_image.S_ROW_COUNT}]_90" value="90" /> <label for="rotate[{upload_image.S_ROW_COUNT}]_90">{L_ROTATE_LEFT}</label></dd>
						<!-- ENDIF -->
					</dl>
				<!-- END upload_image -->
				<!-- IF S_MULTI_IMAGES --><hr /><!-- ENDIF -->
				<dl>
					<dt><label for="max_filesize">{L_MAX_FILE_SIZE}:</label></dt>
					<dd id="max_filesize">{S_MAX_FILESIZE}</dd>
				</dl>
				<dl>
					<dt><label for="max_width">{L_MAX_WIDTH}:</label></dt>
					<dd id="max_width">{S_MAX_WIDTH}</dd>
				</dl>
				<dl>
					<dt><label for="max_height">{L_MAX_HEIGHT}:</label></dt>
					<dd id="max_height">{S_MAX_HEIGHT}</dd>
				</dl>
				<dl>
					<dt><label for="allowed_filetypes">{L_ALLOWED_FILETYPES}:</label></dt>
					<dd id="allowed_filetypes">{S_ALLOWED_FILETYPES}</dd>
				</dl>
			<!-- ENDIF -->
		</fieldset>
	<span class="corners-bottom"><span></span></span></div>
</div>

<div class="panel bg2">
	<div class="inner"><span class="corners-top"><span></span></span>
		<!-- IF S_MOVE_PERSONAL -->
		<fieldset class="fields1">
			<dl>
				<dt><label for="move_to_personal">{L_MOVE_TO_PERSONAL}:</label><br /><span><!-- IF S_MOVE_MODERATOR -->{L_MOVE_TO_PERSONAL_MOD}<!-- ELSE -->{L_MOVE_TO_PERSONAL_EXPLAIN}<!-- ENDIF --></span></dt>
				<dd><input type="radio" name="move_to_personal" id="move_to_personal" value="1" /> {L_YES} <input type="radio" name="move_to_personal" id="move_to_personal" value="0" checked="checked" /> {L_NO}</dd>
			</dl>
		</fieldset>
		<!-- ENDIF -->
		<fieldset class="submit-buttons">
			{S_HIDDEN_FIELDS}{S_CAPTCHA_HIDDEN_FIELDS}
			<input type="reset" accesskey="r" tabindex="200" value="{L_RESET}" class="button2" />&nbsp;
			<input type="submit" accesskey="s" tabindex="201" name="submit" value="{L_SUBMIT}" class="button1" />&nbsp;
		</fieldset>
		{S_FORM_TOKEN}
	<span class="corners-bottom"><span></span></span></div>
</div>
</form>

<!-- INCLUDE gallery/gallery_footer.html -->